package o;

import android.app.Activity;
import o.ewm.n;

public class ewl implements etw, cks {
    private Activity ˊ;

    public void ˏ(Activity activity) {
        if (activity == null || activity.isFinishing()) {
            Logger.e("ShowVideoFailDialogImp", "activity is null or isFinishing");
            return;
        }
        this.ˊ = activity;
        cku ˏ = cku.ˏ(this.ˊ, cku.class, ContentManager.getInstant().getContext().getString(n.ˏ), ContentManager.getInstant().getContext().getString(n.ʻʽ));
        ˏ.ˎ(-2, 8);
        ˏ.setCancelable(false);
        ˏ.ॱ(this);
        if (ˊ()) {
            ˏ.ˎ(this.ˊ);
        }
    }

    public void enableNetworking() {
        if (!ˊ()) {
            this.ˊ.finish();
        }
    }

    public void upgrade() {
        if (!ˊ()) {
            this.ˊ.finish();
        }
    }

    public void ˋ() {
    }

    private boolean ˊ() {
        if (this.ˊ == null || this.ˊ.isFinishing()) {
            return true;
        }
        return false;
    }
}
